package com.cyj.dream.admin.contacts;

/**
 * @Description: 管理中心常量
 * @BelongsProject: DreamChardonnay
 * @BelongsPackage: com.cyj.dream.admin.contacts
 * @Author: ChenYongJia
 * @CreateTime: 2021-10-25 09:47
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
public class AdminConstant {

    /**
     * 包目录
     */
    public static final String SCAN_BASE_PACKAGES_URL = "com.cyj.dream";

    /**
     * mapper文件目录
     */
    public static final String MAPPER_URL = "com.cyj.dream.admin.mapper";

    // ------------------------------- 微信小程序 -------------------------------

    public static final String WECHAT_ID_KEY = "wx5f7c9c42400d0172";

    public static final String WECHAT_SECRET_KEY  = "e1e507d6ac3e808aa4110f83e786de33";

    // ------------------------------- 微信/阿里/华为 密钥 -------------------------------

    /**
     * 产品名称:云通信短信API产品,开发者无需替换
     */
    public static final String PRODUCT = "Dysmsapi";

    /**
     * 产品域名,开发者无需替换
     */
    public static final String DOMAIN = "dysmsapi.aliyuncs.com";

    /**
     * accessKeyId 密钥ID
     */
    public static final String ACCESS_KEY_ID = "LTAI5tHWHZH9sNVAKuN4Pr2c";

    /**
     * accessKeySecret 密钥
     */
    public static final String ACCESS_KEY_SECRET = "dHt4nIGsQFVtLDaAXuEPhEYPTPE2v9";

    // ------------------------------- 邮件配置 -------------------------------

    /**
     * 以下是 163 邮件配置--基于 hutool--邮件服务器的SMTP地址，可选，默认为smtp.<发件人邮箱后缀>
     */
    public static final String EMIL_HOST = "smtp.163.com";

    /**
     * 邮件服务器的SMTP端口，可选，默认25
     */
    public static final Integer EMIL_PORT = 25;

    /**
     * 设置是否需要用户名密码验证
     */
    public static final boolean EMIL_AUTH = true;

    /**
     * 发件人邮箱;
     *
     * 发件人（必须正确，否则发送失败）
     */
    public static final String EMIL_FROM = "SunnyChen<chen867647213@163.com>";

    /**
     * 用户名，默认为发件人邮箱前缀
     */
    public static final String EMIL_USER = "chen867647213";

    /**
     * 密码（注意，某些邮箱需要为SMTP服务单独设置授权码，详情查看相关帮助）
     */
    public static final String EMIL_PASS = "FILJRWQKDSYFMQCG";


    // ------------------------------- 一些变量指定 -------------------------------

    /**
     * hashMap在无法确定初始化大小时设置默认值16 INITIAL_CAPACITY——(元素个数/0.75 + 1)
     */
    public static Integer INITIAL_CAPACITY = 16;

    // ------------------------------- RSA 加解密 -------------------------------

    /**
     * RSA最大加密明文大小
     */
    public static final int MAX_ENCRYPT_BLOCK = 117;

    /**
     * RSA最大解密密文大小
     */
    public static final int MAX_DECRYPT_BLOCK = 128;

    /**
     * 算法名称
     */
    public static final String ALGORITHM_NAME = "RSA";

    /**
     * MD5 RSA加密方式
     */
    public static final String MD5_RSA = "MD5withRSA";

    /**
     * RSA 私钥
     */
    public static final String RSA_PRIVATE_KEY = "RSAPrivateKey";

    /**
     * RSA 公钥
     */
    public static final String RSA_PUBLIC_KEY = "RSAPublicKey";



}
